import axios from '@/axios'

/**
 * 用户登录
 */
export const login = (formData) => {
  return axios.post('/admin/login', formData)
}

/**
 * 获取用户信息
 */

export const getInfo = () => {
  return axios.post('/admin/getinfo')
}

/**
 * 退出登录
 */
export const logOut = () => {
  return axios.post('/admin/logout')
}
/**
 * 修改密码
 */
export const updatepassword = (data) => {
  return axios.post('/admin/updatepassword', data)
}
